package com.diandi.signature.enums.platfrom;

/**
 * Created by Administrator on 2017/7/4.
 */
public enum PlatFormStatus {
    数据保存完成(1,"数据保存完成"),
    处理中(2,"处理中"),
    同步处理成功(3,"同步处理成功"),
    同步处理失败(4,"同步处理失败"),
    异步处理成功(5,"异步处理成功"),
    异步处理失败(6,"异步处理失败"),
    ;
    private int status;
    private String desc;

    PlatFormStatus(int status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static PlatFormStatus getEmun(int status){
        for (PlatFormStatus bankStatus : PlatFormStatus.values()) {
            if(bankStatus.getStatus() == status){
                return bankStatus;
            }
        }
        return null;
    }
}
